<template>
    <view class="bgf mt-15">
        <view class="linh-44 px-15 fz-15 fw-7 borderBottom">申请信息</view>
        <view class="mx-15 py-10">
            <view class="cellBox ov-1">合作申请方：{{ info.applyType === ApplyTypeEnum.APPLY ? globalConfig?.name : info.orgName }}</view>
            <view class="cellBox ov-1">合作接收方：{{ info.applyType === ApplyTypeEnum.AUDIT ? globalConfig?.name : info.orgName }}</view>
            <view class="cellBox ov-1">合作项目：{{ (info.projectName ?? "") }}</view>
            <view class="cellBox ov-1">合作方式：{{ info.cooperationType === CooperationTypeEnum.PUSH ? '资源推送' : '资源接入' }}</view>
            <view class="cellBox ov-1">申请人：{{ info.createUser ?? "" }}</view>
            <view class="cellBox ov-1">申请时间：{{ info.createTime }}</view>
        </view>
    </view>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import { CooperationTypeEnum, ApplyTypeEnum } from '@/enums/cooperationEnum';
import { useAppStoreWithOut } from '@/store/modules/app';

const { globalConfig } = useAppStoreWithOut();
const props = defineProps({
    info: {
        type: Object,
        default: {}
    }
})
</script>

<style scoped>
.cellBox {
    line-height: 60rpx;
    color: #808080;
    font-size: 28rpx;
}
</style>